// 与数据库交互
const adminModel = require("../model/adminModel");
//登录
module.exports.loginDao = async function(loginInfo){
    console.log(loginInfo);
    const result = await adminModel.findOne({
        where: {
            loginId: loginInfo.loginId,
            loginPwd: loginInfo.loginPwd
        }
    })
    return result;
}